import React from "react";
import { Request } from "@/services/request";
import { Button } from "antd";

const Role: React.FC = () => {
  const handleRequest = async () => {
    await Request.exportFile({ method: "post", url: "/exportFile", filename: "role.xlsx", params: { a: 1 } });
  };
  return <Button onClick={handleRequest}>点我导出 Excel 文件</Button>;
};

export default Role;
